package com.hdax.dm.rest;

import com.hdax.dm.common.api.ItemControllerApi;
import com.hdax.dm.item.Item;
import com.hdax.dm.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ItemRestService implements ItemControllerApi {

    @Autowired
    private ItemService itemService;
    @Override
    public List<Item> items(Long itemid) {
        return itemService.itemId(itemid);
    }
}
